package org.cms.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;

/**
 * Created by elnon on 07.03.15.
 */
@Entity
public class JiraIssue {


    @Id
    @Column(insertable=true, updatable=true, unique=true, nullable=false)
    private String id;

    private String key;
    private String status;
    private String project;
    private String summary;
    private String type;
    private Timestamp creationDate;
    private Timestamp updateDate;
    private Timestamp dueDate;
    private int priority;
    private int progress;
    private Time timeEstimate;

    private JiraUser reporter;
    private JiraUser assignee;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Timestamp getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Timestamp creationDate) {
        this.creationDate = creationDate;
    }

    public Timestamp getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Timestamp updateDate) {
        this.updateDate = updateDate;
    }

    public Timestamp getDueDate() {
        return dueDate;
    }

    public void setDueDate(Timestamp dueDate) {
        this.dueDate = dueDate;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public Time getTimeEstimate() {
        return timeEstimate;
    }

    public void setTimeEstimate(Time timeEstimate) {
        this.timeEstimate = timeEstimate;
    }

    public JiraUser getReporter() {
        return reporter;
    }

    public void setReporter(JiraUser reporter) {
        this.reporter = reporter;
    }

    public JiraUser getAssignee() {
        return assignee;
    }

    public void setAssignee(JiraUser assignee) {
        this.assignee = assignee;
    }
}
